package com.top4create.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;


public class Connecter   implements Serializable {
    private Long id;
    private Company company;
    private String connecter;
    private String location;
    private String phone;

   
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public Company getCompany() {
        return this.company;
    }
    
    public void setCompany(Company company) {
        this.company = company;
    }

    public String getConnecter() {
        return this.connecter;
    }
    
    public void setConnecter(String connecter) {
        this.connecter = connecter;
    }
    

    public String getLocation() {
        return this.location;
    }
    
    public void setLocation(String location) {
        this.location = location;
    }
    

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Connecter pojo = (Connecter) o;

        if (company != null ? !company.equals(pojo.company) : pojo.company != null) return false;
        if (connecter != null ? !connecter.equals(pojo.connecter) : pojo.connecter != null) return false;
        if (location != null ? !location.equals(pojo.location) : pojo.location != null) return false;
        if (phone != null ? !phone.equals(pojo.phone) : pojo.phone != null) return false;

        return true;
    }

    public int hashCode() {
        int result = 0;
        result = (company != null ? company.hashCode() : 0);
        result = 31 * result + (connecter != null ? connecter.hashCode() : 0);
        result = 31 * result + (location != null ? location.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);

        return result;
    }

    public String toString() {
        StringBuffer sb = new StringBuffer(getClass().getSimpleName());

        sb.append(" [");
        sb.append("id").append("='").append(getId()).append("', ");
        sb.append("company").append("='").append(getCompany()).append("', ");
        sb.append("connecter").append("='").append(getConnecter()).append("', ");
        sb.append("location").append("='").append(getLocation()).append("', ");
        sb.append("phone").append("='").append(getPhone()).append("'");
        sb.append("]");
      
        return sb.toString();
    }

}
